package com.dao;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.bean.Marketing;


@Transactional(propagation=Propagation.REQUIRES_NEW,readOnly=false,isolation=Isolation.DEFAULT)
public interface MarketingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Marketing record);

    int insertSelective(Marketing record);

    Marketing selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Marketing record);

    int updateByPrimaryKeyWithBLOBs(Marketing record);

    int updateByPrimaryKey(Marketing record);
    
    List<Marketing> selectAll();
    List<Marketing> selectAllByUserid(Integer userid);
    
    List<Marketing> selectby(Map map);
    
    int updateByidstate(Map map);
    List<Marketing> selectBycnameuname(Map map);
	
    
}